<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>扫码登录</title>
</head>

<body>
  <img
    src="https://qr.api.cli.im/newqr/create?data=http%253A%252F%252F127.0.0.1%253A3000%252Factionlogin.html&level=H&transparent=false&bgcolor=%23FFFFFF&forecolor=%23000000&blockpixel=12&marginblock=1&logourl=&logoshape=no&size=260&kid=cliim&key=b8a86265b1996708b50dce2b0d9adc10"
    alt="">

  <script src="./js/socket.io.min.js"></script>
  <script>
    const client = io.connect('/')
    client.emit('uname','accept_admin')

    // 进入
    client.on('enter', msg => {
      location.href = '/welcome.html'
    })
  </script>
</body>

</html>